using System.Collections.Generic;
using Newtonsoft.Json;

namespace ADougenSDK.Storage
{
	[System.Serializable]
	public class StorageTripleCraze : StorageBase
	{

		//关卡进度
		[JsonProperty]
		private int levelprogress;

		[JsonIgnore]
		public int Levelprogress
		{
			get
			{
				 return levelprogress;
			}
			set
			{
				if(levelprogress != value)
				{
					levelprogress = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//金币数量
		[JsonProperty]
		private int gold;

		[JsonIgnore]
		public int Gold
		{
			get
			{
				 return gold;
			}
			set
			{
				if(gold != value)
				{
					gold = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//体力上次恢复时间
		[JsonProperty]
		private long lastenergyrecovertime;

		[JsonIgnore]
		public long Lastenergyrecovertime
		{
			get
			{
				 return lastenergyrecovertime;
			}
			set
			{
				if(lastenergyrecovertime != value)
				{
					lastenergyrecovertime = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//体力
		[JsonProperty]
		private int energy;

		[JsonIgnore]
		public int Energy
		{
			get
			{
				 return energy;
			}
			set
			{
				if(energy != value)
				{
					energy = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//上次登录时间
		[JsonProperty]
		private long lastlogintime;

		[JsonIgnore]
		public long Lastlogintime
		{
			get
			{
				 return lastlogintime;
			}
			set
			{
				if(lastlogintime != value)
				{
					lastlogintime = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//每日过关数
		[JsonProperty]
		private int daypasslevel;

		[JsonIgnore]
		public int Daypasslevel
		{
			get
			{
				 return daypasslevel;
			}
			set
			{
				if(daypasslevel != value)
				{
					daypasslevel = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//是否领取了每日奖励
		[JsonProperty]
		private bool getdaytaskreward;

		[JsonIgnore]
		public bool Getdaytaskreward
		{
			get
			{
				 return getdaytaskreward;
			}
			set
			{
				if(getdaytaskreward != value)
				{
					getdaytaskreward = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//是否是首次运行游戏
		[JsonProperty]
		private bool isfirstgame;

		[JsonIgnore]
		public bool Isfirstgame
		{
			get
			{
				 return isfirstgame;
			}
			set
			{
				if(isfirstgame != value)
				{
					isfirstgame = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//音乐开关
		[JsonProperty]
		private bool ismusic;

		[JsonIgnore]
		public bool Ismusic
		{
			get
			{
				 return ismusic;
			}
			set
			{
				if(ismusic != value)
				{
					ismusic = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
		//声音开关
		[JsonProperty]
		private bool issound;

		[JsonIgnore]
		public bool Issound
		{
			get
			{
				 return issound;
			}
			set
			{
				if(issound != value)
				{
					issound = value;
					StorageManager.Instance.LocalVersion++;
				}
			}
		}
	}
}

